package com.czl.module_storehouse.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.czl.base.data.bean.tengyun.BorrowBean;
import com.czl.base.data.bean.tengyun.ReceiveBean;

import java.util.List;

/**
 * @author xubin
 */
public class RemandBean implements Parcelable {

    private int borrowId;
    private int receiveId;
    private int returnCount;
    private String receiveCode;
    private String receivePersonName;
    private String receiveDate;
    private String borrowPersonName;
    private String borrowCode;
    private String borrowDate;
    private ReceiveBean mReceiveBean;
    private BorrowBean mBorrowBean;

    public RemandBean(ReceiveBean receiveBean) {
        mReceiveBean = receiveBean;

    }

    public RemandBean(BorrowBean borrowBean) {
        mBorrowBean = borrowBean;

    }

    protected RemandBean(Parcel in) {
        borrowId = in.readInt();
        receiveId = in.readInt();
        returnCount = in.readInt();
        receiveCode = in.readString();
        receivePersonName = in.readString();
        receiveDate = in.readString();
        borrowPersonName = in.readString();
        borrowCode = in.readString();
        borrowDate = in.readString();
    }

    public static final Creator<RemandBean> CREATOR = new Creator<RemandBean>() {
        @Override
        public RemandBean createFromParcel(Parcel in) {
            return new RemandBean(in);
        }

        @Override
        public RemandBean[] newArray(int size) {
            return new RemandBean[size];
        }
    };

    public ReceiveBean getReceiveBean() {
        return mReceiveBean;
    }

    public void setReceiveBean(ReceiveBean receiveBean) {
        mReceiveBean = receiveBean;
    }

    public BorrowBean getBorrowBean() {
        return mBorrowBean;
    }

    public void setBorrowBean(BorrowBean borrowBean) {
        mBorrowBean = borrowBean;
    }

    public int getReturnCount() {
        return returnCount;
    }

    public void setReturnCount(int returnCount) {
        this.returnCount = returnCount;
    }

    public int getBorrowId() {
        return borrowId;
    }

    public void setBorrowId(int borrowId) {
        this.borrowId = borrowId;
    }

    public int getReceiveId() {
        return receiveId;
    }

    public void setReceiveId(int receiveId) {
        this.receiveId = receiveId;
    }

    public void setReceiveCode(String receiveCode) {
        this.receiveCode = receiveCode;
    }

    public String getReceivePersonName() {
        return receivePersonName;
    }

    public void setReceivePersonName(String receivePersonName) {
        this.receivePersonName = receivePersonName;
    }

    public String getReceiveDate() {
        return receiveDate;
    }

    public void setReceiveDate(String receiveDate) {
        this.receiveDate = receiveDate;
    }

    public String getReceiveCode() {
        return receiveCode;
    }

    public String getBorrowPersonName() {
        return borrowPersonName;
    }

    public void setBorrowPersonName(String borrowPersonName) {
        this.borrowPersonName = borrowPersonName;
    }

    public String getBorrowCode() {
        return borrowCode;
    }

    public void setBorrowCode(String borrowCode) {
        this.borrowCode = borrowCode;
    }

    public String getBorrowDate() {
        return borrowDate;
    }

    public void setBorrowDate(String borrowDate) {
        this.borrowDate = borrowDate;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(borrowId);
        dest.writeInt(receiveId);
        dest.writeInt(returnCount);
        dest.writeString(receiveCode);
        dest.writeString(receivePersonName);
        dest.writeString(receiveDate);
        dest.writeString(borrowPersonName);
        dest.writeString(borrowCode);
        dest.writeString(borrowDate);
    }
}
